projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
882108c
)
(calcFunc-ldiv): New function.
author
Jay Belanger
<jay.p.belanger@gmail.com>
Mon, 14 Nov 2005 20:12:35 +0000
(20:12 +0000)
committer
Jay Belanger
<jay.p.belanger@gmail.com>
Mon, 14 Nov 2005 20:12:35 +0000
(20:12 +0000)
lisp/calc/calc-arith.el
patch
|
blob
|
history
diff --git
a/lisp/calc/calc-arith.el
b/lisp/calc/calc-arith.el
index ba95ee7f713a5def3eaa536650e87bba16563c55..4d76e1eab5be0daf03e9d5f611546b257d7dd1e6 100644
(file)
--- a/
lisp/calc/calc-arith.el
+++ b/
lisp/calc/calc-arith.el
@@
-1854,6
+1854,10
@@
(math-mul-zero b a))))
(list '/ a b)))
+;;; Division from the left.
+(defun calcFunc-ldiv (a b)
+ (math-mul (math-pow a -1) b))
+
(defun calcFunc-mod (a b)
(math-normalize (list '% a b)))